server_srcs:=$(wildcard server/*.c utils/*.c)
client_srcs:=$(wildcard client/*.c utils/*.c)
server_objs:=$(server_srcs:%.c=%.o)
client_objs:=$(client_srcs:%.c=%.o)
all:server/server client/client
client/client:$(client_objs)
	gcc $^ -o $@ -pthread -lcrypt
server/server:$(server_objs)
	gcc $^ -o $@ -pthread -lcrypt
%.o:%.c
	gcc -c $^ -o $@ -g 
clean:
	$(RM) test/test client/client server/server $(server_objs)
